﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
.more-info-tooltip{
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.5);
}
.more-info-political{
    border: 0;
    color: #005DCC;
    display:block;
    padding: 1px 3px;
    margin: 5px auto;
    background-color: transparent;
}
.more-info-political:hover, .more-info-political:focus, .more-info-political:active{
    padding: 1px 3px;
    border: 0;
    margin: 5px auto;
    color: #005DCC;
    background-color: transparent;
}
.scan-title-main{
    font-size: small;
    text-align: left;
}
.help-btn{
    position: fixed!important;
    padding: 5px!important;
    background-color: #005DCC!important;
    color: white!important;
    font-weight: bold!important;
    bottom: 10px!important;
    left:45%;
    border: 0!important;
    border-radius: 5px!important;
    width:auto!important;
}
#scan-close-help-btn{
    margin:10px auto;
}
#startButtonScan{
    margin:60px auto;
}
.scan-help-img{
    width:100%;
    max-height: 300px;
    object-fit: contain;
}
.scan-help{
    overflow: auto;
    display: none;
    position:fixed;
    top:0;
    width:100%;
    height:100vh;
    bottom:20px;
    left:0;
    padding:10px;
    background-color:rgba(0,0,0,0.9);
}
.scan-help h1, .scan-help p{
    background-color:white;
    font-size:small;
}

.voucher-container{
    width:100%;
    max-width: 700px;
    padding:30px;
    border-radius: 20px;
    background-color: white;
    border: 1px solid black;
    margin: 10px auto;
    font-weight: normal;
}
.voucher-firmas{
    background-color: white;
    display:flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
}
.voucher-firmas div {
    flex:1;
    background-color: white;
    text-align: center;
    margin-top:150px;
}
.conformidad-container{
    display:flex;
    flex-direction: column;
}

canvas {
    touch-action: none;
}

.political-data-container {
    display: none;
}
.politicalyexposed-content{
    padding: 10px;
    font-size: small;
    background-color: white;
    font-weight: normal;
    border-radius: 10px;
    max-width: 500px;
    width:100%;
    margin:10px auto;
}
.yes-no-buttons {
    display: flex;
    max-width: 500px;
    width:100%;
    margin:10px auto;
}
.input-title{
    font-size: small;
    font-weight: bold;
}
.input-political-relationship{
    width:100%;
}
.yes-no-buttons button {
    flex: 1;
}
.political-data-container{
    max-width: 500px;
    width:100%;
    margin:10px auto;
}

.error-msg {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    width: auto;
    margin: 0 auto;
    display: block;
    max-width: 500px;
}

.contract-container {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.final-msg-container {
    font-size: medium;
    font-weight: bold;
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    display: block;
}

.signature-dni {
    background-color: white;
    margin: -10px auto 10px auto;
    text-align: center;
    display: block;
    max-width: 1000px;
    padding: 5px;
    border-top: 0;
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    border-left: 1px solid black;
    font-size: small;
}

.signature-image {
    width: 100%;
    border: 1px solid black;
    max-width: 1000px;
    max-height: 200px;
    object-fit: contain;
    margin: 0 auto 10px auto;
    min-height: 100px;
    background-color: white;
}

.title {
    font-weight: bold;
}

.full-row {
    width: 100%;
    padding: 5px;
}

.form-container {
    width: 100%;
    height: auto;
    border: 1px solid black;
}

.form-container>div {
    border-bottom: 1px solid black;
}

.form-container>div:last-child {
    border-bottom: 0;
}

.two-column-row {
    width: 100%;
    padding: 0 !important;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.two-column-row div {
    flex: 1;
    font-size: small;
    padding: 5px;
}

.two-column-row div:first-child {
    border-right: 1px solid black;
    max-width: 50%;
}

.threequarters-row {
    flex: 1.5;
}

.page-img-top {
    max-width: 100px;
    display: inline-block;
}

.two-column {
    width: 100%;
    display: flex;
    align-items: center;
}

.two-column img, .two-column h1 {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: small;
}

body {
    background-color: #80C0FF;
}

.page {
    width: 100%;
    max-width: 1000px;
    background-color: white;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    padding: 30px;
}

.signature-container {
    display: flex;
    align-items: center;
}

.signature-container div {
    flex: 1;
    text-align: center;
}

p {
    font-weight: lighter;
    line-height: 18pt;
}

.bold {
    font-weight: bold;
}

.banco-container {
    border: 1px solid black;
    width: 100%;
}

.banco-container-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.banco-container-row img {
    flex: 1;
    width: 20%;
}

.banco-container-row div {
    flex: 1;
}

.center-text {
    text-align: center;
}

.three-column-row {
    display: flex;
    text-align: center;
}

.three-column-row div {
    text-align: center;
    padding: 5px;
    border-top: 1px solid black;
}

.three-column-row:nth-child(3) {
    border-bottom: 1px solid black;
}

.three-column-row div:nth-child(1), .three-column-row div:nth-child(3) {
    flex: 2;
}

.three-column-row div:nth-child(2) {
    flex: 1;
    border-left: 1px solid black;
    border-right: 1px solid black;
}

.two-rows-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    text-align: center;
}

.two-rows-row div:first-child {
    border-right: 0;
    border-bottom: 1px solid black;
    max-width: 100%;
}

#thirteenth-page>p {
    font-size: small;
    line-height: normal;
}

.firmas-container {
    display: flex;
    align-items: flex-end;
}

.firmas-container>div {
    flex: 1;
    text-align: center;
}

/*END HTML TEMPLATE SECTION */

.sign-panel {
    margin: 0 auto;
    width: 100%;
    display: none;
    max-width: 100vw;
    background-color: white;
    text-align: center;
}

body {
    background-color: transparent;
}

.success-msg {
    padding: 20px;
    background-color: #26b050;
    color: white;
    font-weight: bold;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
}

#sourceSelectPanel {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    position:fixed;
    top:0;
    align-items: center;
    justify-content: center;
    align-items: center;
    background-color: #1861ac;
    ;
    color: white;
    padding: 10px;
    border-radius: 5px;
}

#sourceSelectPanel select {
    flex: 1;
    margin: 2px;
}

#sourceSelectPanel label {
    margin: 2px;
}

.more-info p {
    margin: 0;
}

.inner-loadingdiv {
    top: 0;
    left: 0;
    display: none;
    opacity: 0;
    position: fixed;
    z-index: 99;
    width: 100%;
    text-align: center;
    height: 100vh;
    background-color: rgba(255,255,255,0.3);
    transition: all 1s;
}

.loading-visible {
    display: block!important;
    opacity: 1;
}

.dont-display {
    display: none!important;
}

.takephoto-visible {
    display: block;
}

.dbphoto-visible {
    display: block;
}

.dbphoto {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

.user-menu {
    width: 100%;
    text-align: right;
    background-color: #003B8D;
    z-index: 30;
}

.user-menu-item {
    padding: 5px;
    color: white;
    display: inline-block;
    font-size: small;
}

.field-title {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-input-container {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.6);
    width: 100%;
}

.login-input-container input {
    display: block;
    border-radius: 5px;
    border: 1px solid #1b6ec2;
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
}

.login-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: block;
}

#toast {
    position: absolute;
    bottom: 10%;
    display: none;
    background-color: rgba(255, 255, 255, 0.7);
    left: 50%;
    padding: 15px;
}

html {
    scroll-behavior: smooth;
}

#camera-error-container {
    text-align: center;
    font-size: large;
    color: red;
    font-weight: bold;
}

.index-number {
    font-weight: bold;
}

.index-start-btn {
    padding: 10px;
    background-color: #8BBCE5;
    margin: 10px auto;
    border: 0;
    border-radius: 5px;
    color: white;
}

.index-section-img {
    flex: 1;
    width: 100%;
    max-width: 40px;
    object-fit: contain;
    margin: 5px auto;
    max-height: 150px;
}

.loading-div {
    position: absolute;
    z-index: 99;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.2);
    width: 100vw;
    height: 100vh;
    text-align: center;
}

.spinner {
    width: 100%;
    max-width: 100px;
    margin: 10vw auto;
    display: block;
    -webkit-animation: rotating 2s linear infinite;
    -moz-animation: rotating 2s linear infinite;
    -ms-animation: rotating 2s linear infinite;
    -o-animation: rotating 2s linear infinite;
    animation: rotating 2s linear infinite;
}

.firma-montore-container {
    width: 100%;
    margin: 0 auto;
    display: block;
    max-width: 1000px;
    text-align: center;
    background-color: white;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.sketch {
    width: 80vw;
    margin: 20px auto;
    max-width: 600px;
}

.index-title-img {
    width: 100%;
    margin: 10px auto;
    display: block;
    max-width: 150px;
}

.index-steps {
    font-weight: bold;
    font-size: medium;
    color: #003B8D;
}

#item-1 {
    background-color: #002E66;
    border-right: 5px solid #0051B2;
}

#item-2 {
    background-color: #003B8D;
    border-right: 5px solid #005DCC;
}

#item-3 {
    background-color: #0051B2;
    border-right: 5px solid #002E66;
}

#item-4 {
    background-color: #005DCC;
    border-right: 5px solid #003B8D;
}

.more-info {
    display: none;
}

.index-container-flex {
    display: flex;
    width: 100%;
    height: auto;
    transition: height 1s;
    margin: 20px auto;
    align-items: stretch;
}

.index-flex-item {
    flex: 1;
    margin: 1px;
    padding: 10px;
    background-color: #004BA5;
    color: white;
    display: flex;
    font-size: small;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.index-flex-item h2 {
    font-size: medium;
    margin: 10px;
}

#signature-canvas {
    margin: 10px auto;
    display: none;
    border: 1px solid black;
    background-color: #F5F5F5;
}

.paint {
    border: 1px solid black;
    background: #F5F5F5;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#index-welcomemsg {
    font-size: small;
}

#pasos-a-seguir {
    list-style: none;
    text-decoration: none;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.6);
}

#pasos-a-seguir li {
    display: flex;
    align-items: center;
}

.number {
    font-size: x-large;
    margin-right: 10px;
    vertical-align: middle;
}

.item-description {
    font-size: large;
    vertical-align: middle;
}

#snap-container {
    position: relative;
}

#base64Photo {
    width: 100%;
    overflow: auto;
    word-wrap: break-word;
    word-break: break-all;
    max-height: 100px;
}
#flip-btn{
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 5px;
    padding: 2px 5px;
    border: 0;
    background-color: #005DCC;
    color: white!important;
    z-index: 30;
}

#result-container {
    display: none;
}

.mainmenu-logo img {
    width: 100%;
    max-width: 400px;
}

.video-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#video {
    display: block;
    position:fixed;
    top:0;
    left:0;
    margin: 0 auto;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index:-1
}
#resetButton{
    padding:5px;
    position:fixed;
    width:auto;
    bottom:10px;
    left:5px
}
#image-for-video {
    display: none;
    z-index: 20;
    position: absolute;
    top: 0;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

#image-for-scan {
    z-index: 20;
    position: absolute;
    top: 27.5%;
    left: 30%;
    right: auto;
    width: 40%;
    margin: 0 auto;
    box-sizing: border-box;
}
#personal-photo-mesagge{
    font-size: small;
    padding:2px;
}
#canvas {
    margin: 0 auto;
    display: block;
    max-height: 40vh;
    max-width: 60vw;
    object-fit: contain;
}

#snap {
    position: fixed;
    padding: 5px;
    bottom:30px;
    left:40%;
    margin: 0 auto;
    width: 20%;
    border-radius: 5px;
    border: 0;
    display: block;
    font-size: small;
    color: white;
    background-color: #005DCC;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

#scan-status {
    text-align: center;
    padding: 5px;
    width:auto;
    position:fixed;
    right:5px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    bottom:10px;
    font-weight: bold;
    display: block;
}

.content-btn {
    padding: 10px;
    margin: 10px auto;
    width: 100%;
    max-width: 200px;
    border-radius: 5px;
    text-align: center;
    border: 0;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    color: white!important;
    background-color: #005DCC;
}

.content-btn:visited, .content-btn:hover {
    text-decoration: none;
    color: white!important;
    cursor: pointer;
}

.main {
    background-color: transparent;
}

html {
    background-image: url(../images/fondoTotal.png);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.title-main {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 5px;
    font-size: large;
    text-align: center;
}

.mensaje {
    border-radius: 5px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.6);
}

html, body {
    font-family: 'Lato', sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

.main .top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
}

.main .top-row>a, .main .top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
}

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    background-image: linear-gradient(180deg, #004BA5 -20%, #002859 110%);
}

.sidebar .top-row {
    background-color: rgba(0, 0, 0, 0.4);
}

.sidebar .navbar-brand {
    font-size: 1.1rem;
}

.sidebar .oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.sidebar .nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.sidebar .nav-item:first-of-type {
    padding-top: 1rem;
}

.sidebar .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.sidebar .nav-item a {
    color: white;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.sidebar .nav-item a.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.sidebar .nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }
    .main .top-row.auth {
        justify-content: space-between;
    }
    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
    .index-container-flex {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }
    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }
    .main .top-row {
        position: sticky;
        top: 0;
    }
    .main>div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
    .navbar-toggler {
        display: none;
    }
    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

@-webkit-keyframes rotating
/* Safari and Chrome */

    {
    from {
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotating {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}